TextShape TextBoxHeight
Gets or sets the height of the boundary box for the shape. The boundary box will be used to align text in the marking field.
public float TextBoxHeight {get;Set} |
Return value
float | Height of the text box |
Example
Copy
TextShape textShape = new TextShape();
textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;
textShape.Location.X = 0;
textShape.Location.Y = 0;
textShape.LineSpaceStyle = TextLineSpaceStyle.Factor;
textShape.LineSpace = 1f;
vectorImage.AddText(textShape);